#define _CRT_SECURE_NO_WARNINGS
#pragma warning(disable:6031)
#include"heap.h"
int main()
{
	HP hp;
	HPInit(&hp);
	int arr[] = { 2,1,3,8,6,5 };
	for (int i = 0; i < sizeof(arr) / sizeof(arr[0]); i++)
	{
		HPPush(&hp, arr[i]);
	}
	//for (int i = 0; i < sizeof(arr) / sizeof(arr[0]); i++)
	//{
	//	printf("%d", hp.a[i]);
	//}
	int k = 3;
	for (k;k>0;k--)
	{
		printf("%d ", HeapTop(&hp));
		HeapPop(&hp);
	}
	printf("\n%d", HeapSize(&hp));

	return 0;
}
